<template>
  <router-view v-if="isRouterAlive"></router-view>
</template>

<script>
import Axios from 'axios';

export default {
  name: "App",
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },
  mounted() {
    this.test()
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function() {
        this.isRouterAlive = true;
      });
    },
    async test() {
      const res=await Axios('/test/findAllTest')
    }
  }
};
</script>